package cn.taichoo.server.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * App主，基本信息对象 tai_app_info
 *
 * @author Wuzh
 * @date 2025-03-17
 */
@TableName("tai_app_info")
@Data
public class AppEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @Schema(description = "Id")
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    @Schema(description = "APP名称")
    @TableField("app_name")
    private String appName;

    /**
     * 包名
     */
    @Excel(name = "包名")
    @Schema(description = "包名")
    @TableField("package_name")
    private String packageName;

    /**
     * app的logo
     */
    @Excel(name = "app的logo")
    @Schema(description = "app的logo")
    @TableField("logo")
    private String logo;

    /**
     * 口号
     */
    @Excel(name = "口号")
    @Schema(description = "APP名称")
    @TableField("slogan")
    private String slogan;

    /**
     * 简介
     */
    @Excel(name = "简介")
    @Schema(description = "简介")
    @TableField("desc_info")
    private String descInfo;

    /**
     * 备案
     */
    @Excel(name = "备案")
    @Schema(description = "icp")
    @TableField("icp")
    private String icp;

    /**
     * 过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "过期时间")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("expire_time")
    private Date expireTime;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @Excel(name = "是否删除")
    @TableField("deleted")
    private Integer deleted;

}
